import request from '@/api/request'

export function getCategories(params) {
  return request({
    url: '/shopping/category_list/',
    method: 'GET',
    params
  })
}

export function getGoodsList(params) {
  return request({
    url: '/shopping/goods_list/',
    method: 'GET',
    params
  })
}

export function getGoodsById(goods_id) {
  return request({
    url: `/shopping/goods_list/${goods_id}`,
    method: 'GET',
  })
}


export function getWxGiftPackByCode(params) {
  return request({
    url: '/shopping/wx_gift_pack/',
    method: 'GET',
    params
  })
}
